Prompting a player of a dance game

ABSTRACT

Presented herein are methods, apparatuses, programs, and systems for prompting a player to perform a series of dance moves. A player is prompted to perform a series of dance moves by providing a timeline comprising at least a first time interval associated with a first dance move, and a second time interval associated with a second dance move; displaying an icon representing the first dance move at a first location on the display for the duration of the first time interval; and displaying an icon representing the second dance move at the first location on the display for the duration of the second time interval, wherein the icon representing the first dance move includes one or more representations of a body and indicates on the one or more representations of the body at least one body part whose position is important during the performance of the first dance move.

CROSS REFERENCE TO RELATED APPLICATION

This application is a continuation-in-part of, claims the benefit of, and priority to co-pending U.S. application Ser. No. 12/940,794, filed Nov. 5, 2010 and entitled “Dance Game Tutorial” by Flury et al., which claims the benefit of and priority to U.S. Application No. 61/354,073, filed Jun. 11, 2010 and entitled “Dance Game and Tutorial” by Flury et al., the entire contents of which are incorporated herein by reference in their entirety. This application also claims the benefit of and priority to U.S. Application No. 61/354,073, filed Jun. 11, 2010 and entitled “Dance Game and Tutorial” by Flury et al., the entire contents of which are incorporated herein by reference in their entirety.

FIELD OF THE INVENTION

The present invention relates generally to gesture-based video games and, more specifically, to dance video games based on positional input from a user.

BACKGROUND

Although video games and video game consoles are prevalent in many homes, game controllers, with their myriad of buttons and joysticks, are still intimidating and confusing to people that do not often play video games. For these people, using a game controller to interact with the game is an obstacle to enjoying it. Also, where the game is a dance game, often an additional controller is required in the form of a dance mat or dance pad. These dance mats have specific input sections (similar to buttons on a traditional controller) that react to pressure from the user's feet. But these mats take up a lot of space and are often single use controllers—they are used just for dance games and must be rolled up and stored when not in use.

To increase a user's feeling of immersion in the game, as well as to overcome the cumbersome nature of game controllers or dance mats for users not familiar with them, some game platforms forego the use of traditional controllers and utilize cameras instead. The cameras detect a user's physical movements, e.g., the waving of his arm or leg, and then interpret those movements as input to the video game. This allows the user to use a more natural-feeling input mechanism he is already familiar with, namely the movement of his body, and removes the barrier-to-entry caused by the many-buttoned controller.

One example of a camera-based controller is the EyeToy camera developed by Logitech and used with the Sony PlayStation 2 game console. The EyeToy, and similar cameras, typically include a camera and a microphone. The EyeToy sends a 640×480 pixel video stream to the PlayStation, and the game executing on the PlayStation parses the frames of the video, e.g., calculating gradations of color between pixels in the frame, to determine what in the camera's field-of-view is the user (“player”) and what is the background (“not player”). Then, differences in the stream over time are used to determine and recognize the user's movements, which in turn drive the user's interaction with the game console.

Other cameras used by game platforms include the DreamEye for the Sega Dreamcast, The PlayStation Eye (a successor to the EyeToy) for Sony's PlayStation 3, and the Xbox Live Vision for Microsoft's Xbox 360. These cameras all provide a typical single-input camera that can stream video or take still photographs, and some, such as the PlayStation Eye, additionally provide a microphone for audio input.

Microsoft is currently developing a depth-aware camera system in the form of Project Natal. A Natal system provides an RGB camera, a depth sensor, a multi-array microphone, and software that processes the inputs from the camera, depth sensor, and microphone. Beneficially, the Natal software provides, based on the input, a three-dimensional skeleton that roughly maps to the user's body. Specifically, rather than just determining a difference between “player” and “not player” like prior game cameras, Natal determines what is the user's right hand, left hand, head, torso, right leg, and left leg. This skeleton is preserved as a user moves his body in the camera's field of view, allowing for the tracking of specific limbs. This skeleton framework, however, is the extent of what Natal provides. Namely, no user interface is provided by Natal, and users must still use a game controller to interact with a game or menu system.

Other systems, based on non-camera technologies, have also been developed that attempt to track a user's movements. For example, the Nintendo Wii provides players with an infrared transmitter “Wii remote” that the user holds in his hand. The Wii remote is used as pointing device and has a built-in accelerometer to track changes in the Wii remote's position. The Wii remote is often paired with a “nunchuk” (which also has an accelerometer) that is held in the player's other hand, allowing the Wii to, in a sense, track the movements—or at least changes in the movements—of the user's hands. Another technology based on a hand-held controller is sixense, which is demonstrated at http://www.sixense.com

High-end motion capture (“mocap”) systems have also been used to track a user's movements. Typically mocap systems involve the user wearing a body suit that has dozens of white spheres located at relevant locations. The mocap cameras detect these spheres and use them to infer positional information about the user's body. Mocap systems, however, are expensive and not practical for the average user.

SUMMARY OF THE INVENTION

The invention provides methods, systems, computer program products and means for prompting a player to perform a series of dance moves. The method and computer program product are typically executed on a game platform in signal communication with a display. The inventions involve providing a timeline including at least a first time interval associated with a first dance move and a second time interval associated with a second dance move. An icon representing the first dance move is displayed at a first location on the display for the duration of the first time interval; and an icon representing the second dance move is displayed at the first location on the display for the duration of the second time interval. Typically, the icon representing the first dance move indicates at least one body part whose position is important during the performance of the first dance move.

There are additional methods, systems, computer program products and means for prompting a player to perform a series of dance moves. These are also performed by or executed on a game platform in signal communication with a display and involve providing a timeline comprising at least a first time interval associated with a first dance move, and a second time interval associated with a second dance move. An icon is displayed representing the first dance move at a first fixed location on the display for the duration of a third time interval, with the third time interval being associated with the first dance move. An icon is displayed representing the second dance move at the first fixed location on the display for the duration of a fourth time interval, the fourth time interval associated with the second dance move. Typically, the icon representing the first dance move indicates at least one body part whose role is important during the performance of the first dance move.

Either of the above inventions enjoys the following benefits and advantages. In some embodiments, the role of the at least one body part is at least one of: the position, the velocity, the direction of movement, or any combination of these. In some implementations, the first time interval and the third time interval are substantially the same time interval and the second time interval and the fourth time interval are substantially the same time interval. Additionally or alternatively, the third time interval begins slightly before the beginning of the first time interval and ends slightly before the end of the first time interval.

In some embodiments, a table lookup is performed before the third time interval using the first dance move to determine the icon representing the first dance move; and the icon representing the first dance move is retrieved from a memory.

There are also methods, systems, computer program products and means for providing dance instructions. These are typically executed on a game platform in signal communication with a display, and involve displaying, on the display, a game play screen comprising a first region and a second region and displaying a first icon in the first region, the icon representing a first dance move for the player to perform for a first time period associated with the first dance move. Then, a second icon depicting a second dance move for the player to perform is translated into the first region from the second region, at the end of the first time period.

Beneficially, the above methods, systems, computer program products and means also enjoy the following advantages. In some embodiments, before the translating step, the second icon is displayed in the second region for the first time period associated with the first dance move. In some implementations, the icon representing the first dance move includes one or more representations of a body, each representation of the one or more representations depicting a pose associated with the first dance move. In some of these implementations, each of the one or more representations of a body is an outline of a body.

In some cases, the icon representing the first dance move is displayed at a third location on the display, at a time associated with the second time interval.

In some embodiments, a score for the player's performance of the first dance move is determined; and an attribute of the icon representing the first dance move is changed based on the score. In some embodiments, the attribute is one of a color, a brightness, a background, or a size. In some implementations, a transition of the icon representing the first dance move to the third location is animated.

In some embodiments, a transition of the icon representing the second dance move to the first location is animated. In some embodiments, indicating at least one body part whose position is important during the performance of the first dance move includes highlighting the at least one body part on the icon representing the first dance move. In some embodiments, the icon representing the first dance move includes an indicia of motion for the at least one body part whose position is important during the performance of the first dance move. In some embodiments, the icon representing the first dance move comprises an indicia of motion for the player's body. In some embodiments, the icon representing the first dance move comprises an indicia of repetition of motion. In some embodiments, the icon representing the first dance move is animated.

Other aspects and advantages of the present invention will become apparent from the following detailed description, taken in conjunction with the accompanying drawings, illustrating the principles of the invention by way of example only.

BRIEF DESCRIPTION OF THE DRAWINGS

The foregoing and other objects, features, and advantages of the present invention, as well as the invention itself, will be more fully understood from the following description of various embodiments, when read together with the accompanying drawings, in which:

FIG. 1A depicts a game platform with a Project Natal camera system;

FIG. 1B depicts an example of a skeleton provided by Project Natal;

FIG. 1C depicts an example of a skeleton that includes vectors used in determining normalized joint position;

FIG. 2A shows a series of movements spread over four beats that begin a representative dance move;

FIG. 2B shows a representative window to determine a user's timing error in performing a move;

FIG. 3A shows a distance calculation between the target performance skeleton (shown in outline) and the user's input (shown solid);

FIG. 3B shows a window of acceptable error for position when performing a move;

FIG. 4 depicts how a mocap for a dance routine may be refactored to create a dance routine of an easier difficulty;

FIG. 5 depicts one embodiment of an authoring system for the dance game.

FIG. 6 depicts an exemplary icon representing a dance move.

FIG. 7 depicts exemplary icons representing dance moves.

FIG. 8 is a flow diagram depicting a method of prompting a player to perform a series of dance moves.

DETAILED DESCRIPTION

One embodiment of the present invention is based on the Project Natal framework developed by Microsoft Corporation of Redmond, Wash. As indicated in FIG. 1A, the Project Natal system includes an RGB camera 105, a depth sensor 110, a multi-array microphone 115, and a processor (not shown). The RGB camera 105 delivers a three-color (Red, Green, Blue) video stream to the game console, enabling facial recognition and full-body tracking The depth sensor 110 is an infrared projector combined with a monochrome CMOS sensor. This allows a game console 120 utilizing Natal to recognize objects in the camera's field of view in three dimensions instead of forcing the game console to parse a two-dimensional video-stream. The multi-array microphone 115 parses voices and sound input, while simultaneously extracting and nullifying ambient noise. Project Natal also features a processor with proprietary software that coordinates the inputs of the Natal system and provides a three-dimensional, skeleton-based system to game developers. Developers can use this system to utilize three-dimensional position information of the joints in the user's body to interact with the game platform.

Although Project Natal provides a framework for determining positional information of a user's body, it does not provide a means for grading a dance performance or teaching a user to dance. While in some embodiments, a camera-based system is used to determine positional information about the user's body in three dimensions to produce a skeleton model, in other embodiments, transducers attached to the user's body are used to detect the positions of the user's limbs and produce a skeleton model. Other embodiments use infrared pointing devices or other motion tracking peripherals. All that is required is a system than can parse movement in two dimensions to produce a skeleton model; adding dimension information from a third dimension, typically depth, simply makes the invention easier to implement due to the additional information provided to the system. In embodiments where the system is already provided a skeleton, such as Natal, relative body scale mapping is easier to accomplish.

Also shown in FIG. 1A is an exemplary game platform 120. The game platform typically includes a Central Processing Unit (CPU) 125, a graphics processor 130, storage component 135 such as a hard drive, Read Only Memory (ROM) 140, Random Access Memory (RAM) 145, all in signal communication via a bus 150. The bus 150 also connects to an input for the Project Natal System. In some embodiments, the Natal system connects to the game platform 120, e.g., an Xbox 360, via a Universal Serial Bus (USB) connection.

As used herein, the terms “joint”, “bone”, and “skeleton” are intended to have the meaning one of skill in the art of motion capture and animation would ascribe to them. For example, a skeleton can comprise bones, but the number of bones and their positions are a function of the motion capture equipment and the animation rig and do not necessarily correlate to the number and positions of bones in a human skeleton. Similarly, a joint can be at the distal endpoint of a single bone (e.g., a fingertip or the head), and need not be at a point where two bones come together. An example of the Natal skeleton is shown in FIG. 1B. The skeleton provided by the Natal system provides a framework for the dance game, and allows for tracking of not only limbs generally, but specific joints as well. For example, the wrist joint 160 on the right arm is treated separately from the right elbow 165, which is treated differently than the right shoulder 170. Additional portions of the body are also recognized, such as the pelvis, middle of the torso, the head, the neck, and the knees and feet.

One of the benefits provided by the skeleton-based system is that the skeletal model can be used to calculate scale vectors based on two or more joints. This provides a spatially relative system, i.e., what is the positional distance from body part X to body part Y compared to the positional distance from body part X to body part Z, instead of an absolute coordinate system.

A “filter” as used herein, is in effect a test, e.g., is the user's right hand in a particular position at time t_(n)? Although typically a producing a Boolean outcome, e.g., if the condition is true, the filter is satisfied and registers a success, and if not, then the filter is not satisfied. Filters may also output a contiguous score indicating the degree to which the condition is being satisfied spatially or temporally. Advantageously, multiple filters can be checked simultaneously, e.g., is the user's right hand in position x and is his left foot in position y? These filters can then be combined to determine if a user has successfully completed a pose. But pose-matching, in and of itself, is not a complete solution to scoring a sequence of dance moves.

Creating a Target Representation

The process of one implementation begins by using motion capture technology (known in the art as “mocap”) to create a three-dimensional model of a target performance of a dance or part of a dance. Motion capture is a recording of human actor which can be used by a computer to reproduce the actor's performance. When the mocap session is recorded, sensors at various points on the actor's body provide the recording computer with information such as joint and limb position data over time. In the case of a dance game, the mocap is typically a recording of a dancer performing a particular dance move, or series of movements that makes up a dance move, and in one implementation, the mocap is a recording of an entire dance routine for a song. The mocap performance becomes a representation of the dance in a form usable by the game system (i.e., a “target performance”). Beneficially, the positional information received during mocap is similar to the positional information received by a camera-based game system when a user is playing a game. This similarity can be exploited to grade a user on how well he is dancing at a particular time by comparing a user's performance (the input performance) to a keyframe of the target performance. Also beneficially, the mocap data can be used to drive on-screen animations of avatars, thus demonstrating to the user the exact movements he must perform to maximize his score.

At least one notable problem arises though that prevents a direct comparison between the user's performance and the target performance: because the user and the mocap actor could have different heights and appendage lengths, or have different body types, a direct comparison of positional information of the input performance and the target performance could result in the user scoring poorly, even if he is performing the moves correctly. For example, the actor in the target performance could have an arm fully extended which, based on the dimensions of the actor's body, positions the actor's wrist two and a half feet in front of his shoulder. The user's input, also reflecting a fully extended arm, could have the (shorter-in-stature) user's wrist positioned two feet in front of his shoulder. In a purely comparative system, the user has not satisfied a test of “is the user's wrist in the same position as the wrist of target performance actor?” because the user's wrist, even though his arm is fully extended, is still a half foot closer to the reference point, i.e., the shoulder. Therefore, it is advantageous to express both the target performance and the user's performance in the same frame of reference.

Normalizing the Input Performance and Target Performance

To create a consistent frame of reference, the mocap data, which is expressed in its own representation (in some implementations even its own skeleton), and the user's input are both normalized, creating a normalized target performance and a normalized input performance. In one implementation, normalization of each joint is achieved by deriving unit vectors reflecting offsets of one specific joint relative to another specific joint.

In one embodiment, there are four different player-normalized coordinate systems: left arm, right arm, left leg, and right leg. The left arm coordinate system's origin is at the left shoulder, the up vector is away from gravity (in Natal systems, based on Natal's accelerometer). The right vector is from the left shoulder to the right shoulder, the forward vector is the cross product of the up vector and the right vector. The right arm coordinate system is just the mirror of this. The left leg coordinate system's origin is the left hip, the up vector is gravity, the right vector is from the left hip to the right hip, and the forward vector is the cross product of the up vector and the right vector. The right leg coordinate system is the mirror of this.

As an example, referring to FIG. 1C, the normalized position of joints on the left arm can be determined as follows. The left shoulder joint 175 is treated as the origin of the vector 185 from the shoulder to the elbow 180 and that vector 185 is transformed from the skeleton's coordinate system into the left arm coordinate system. The vector is then normalized by dividing it by its magnitude. The resulting vector is a “normalized elbow position.” A similar process is applied to the input skeleton to determine a normalized elbow position for the user. This method can be used for other joints as well, e.g., the wrist position can be normalized by determining the vector 190 from the elbow 180 to the wrist 182, transforming that vector from the skeleton's coordinate system into the left arm coordinate system, and dividing it by the magnitude of that vector 190. A knee's position can be normalized based on the vector 195 between the hip and the knee, transformed from the skeleton's coordinate system into the appropriate-side leg coordinate system, and divided by the magnitude of that vector. An ankle's position can be determined based on the vector from the knee to the ankle, and so forth. Other joints such as hips are usable as well: foot raises are determined as a “squish” from foot to waist where the foot's position is drawn in towards the waist. In one embodiment, the normalized joint positions in the entire skeleton are computed, using the joint more proximal to the body core as the reference joint. In other embodiments, only a subset of the joints that have a correspondence in both skeletons are normalized, and normalization occurs on a limb-by-limb basis. In either embodiment, the normalization of the target performance can be carried out in advance of gameplay, or can be carried out during gameplay.

There are several options for normalizing joints that are not directly connected to an origin joint. Continuing the previous example with the shoulder 175 being the origin joint, the wrist's position could be normalized by determining the vector 197 from the shoulder 175 to the wrist joint 182, transforming the vector 197 from the skeleton's coordinate system into the left arm coordinate system, and dividing the resulting vector by the sum of the magnitude of the vector 185 from the shoulder to the elbow and the magnitude of the vector 190 from the elbow to the wrist. Alternatively, the vector 197 from the shoulder to the wrist could be determined, transformed, and divided by the magnitude of that vector 197. For legs, an ankle position could be based on foot position, transformed from the skeleton's coordinate system into the appropriate-side leg coordinate system, and divided by the sum of the magnitudes of the vector from the hip to the knee and from the knee to the ankle.

Typically, normalizing the target performance and the input performance yields positional information analogous to both, e.g., both have elbow position representations, both have wrist position representations, etc. Where data is not available in the mocap data or the user input for a particular joint though, in some embodiments, the game interpolates between two joints to create a “pseudo-joint” that maps to a joint in the other skeleton. For example, if the mocap skeleton has a left hip joint and a right hip joint, but a user skeleton only has a mid-pelvis joint, a mid-pelvis pseudo-joint can be synthesized for the mocap skeleton at the midpoint of the two hip joints, and used in further normalization and scoring. Alternatively, pseudo-joints could be interpolated from both data sets/skeletons to map to a third idealized skeleton. Additionally, where the input camera system is a Project Natal system, adjustments are typically made to conform the mocap skeleton to the Natal skeleton, or vice versa, e.g., dropping the hips, adjusting the shoulder height, and others. In some embodiments, the game creates a “pseudo-joint” even when data is available in both the mocap data and the user input, in order to provide a reference point or measurement that is more stable than a joint in the existing skeleton.

Comparing the Input Performance to the Target Performance

In one embodiment of the invention, every “frame” of the input performance is compared with the corresponding frame of the target performance to produce a score for that frame. This strategy, however, does not allow the game to account for inaccuracies in the user's timing, such as dancing a move with perfect position but slightly late or early. In another embodiment, the invention addresses this issue by scoring each frame of the input performance against the corresponding frame of the target performance and a range of adjacent frames. The scoring process incorporates positional and temporal score using a technique described below. For a given target frame, a score is determined by finding the maximum score of all input frames scored against that target frame.

This approach, however, can be prohibitively expensive computation-wise on some game consoles. To alleviate this, in some embodiments, only a fraction of the input frames are compared with target frames (e.g., half of the input frames). The specific frames in the input performance that are chosen for comparison can be regularly spaced, or the frames can be chosen randomly with a probability matching that fraction.

This approach, however, does not capture the intent behind a dance move where certain intermediate poses are more important and the transition movements into or out of those poses are less important. In a preferred embodiment, the input frames should be compared to the target frames most important to the dance itself.

In one embodiment, each frame of the target performance is assigned a weight (e.g., in the range 0.0 to 1.0). As stated above, each target frame receives a score based on the maximum score of all input frames scored against that target frame. In this embodiment, that score is multiplied by the weight to produce a weighted score for each target frame. The score for a move is determined by combining the weighted scores using a sum or average.

In one embodiment, each frame of the target performance is assigned a weight (e.g., in the range 0.0 to 1.0) that is computed based on the target performance. The weight for a frame of the target performance may be computed based on any number of neighboring frames of the target performance. The computation determines which target frames are the most important to the dance by detecting inflections in direction of parts of the target skeleton, or inflections in distance between parts of the target skeleton.

For example, the initial weight for a frame may be 0.0. A velocity vector can be computed for each joint in a target frame by subtracting its position in the previous frame from its position in the current frame. Whenever any joint's velocity experiences a derivative of zero with respect to time, along the x, y, or z axis in the camera-based coordinate system, or along the x, y, or z axis in the skeleton-based coordinate system (see below for a technique for computing a skeleton-based coordinate system), that frame's weight is increased. For example, if the weight of the target frame before considering the joint was w0, the new weight might be (1+w0)/2, or it may be set to a predetermined “one joint zero-derivative” value such as 0.5. If another joint's velocity simultaneously experiences a derivative of zero, the frame's weight is increased by substituting the previous weight into (1+w0)/2 again, or it may be set to a predetermined “two joint zero-derivative” value such as 0.75. Likewise, additional joints that experience simultaneous derivatives of zero make the current frame have a higher weight using the formula or a lookup table that references number of contributing joints to a weight value between 0.0 and 1.0.

Although derivatives of joint positions can be used to determine the weight for a frame of the target performance, other measurements can also contribute to the weight. For example, distances between specific joints can be computed for each frame and tracked across frames, and zero-derivative measurements can contribute to the weight. For example, the distance between wrist joints may be measured for each frame. Frames in which the distance experiences a zero derivative would increase the frame's weight by substituting its previous weight into (1+w0)/2 or looking up a value from a table as above.

Other measurements can also contribute to the weight, such as zero-derivative measurements of the overall bounding rectangle of the skeleton along x, y, or z axes in a camera-centered coordinate system or x, y, or z axes in a skeleton-based coordinate system.

However the target weight is computed, the final weight assigned to each target frame is used in the same way as described previously.

In a preferred implementation, a subset of the frames of the target performance are marked as keyframes, each keyframe representing a specific frame in the target performance with which the input performance should be compared. The target performance—comprising an entire dance routine—is aligned with a timeline, the performance being divided into moves, each move having a start time and an end time relative to the beginning of the dance, measured in units of measures/beats/ticks. Alternatively, each move can have a start time and a duration.

In some embodiments, frames of the target performance at regular intervals of beats (e.g., every tenth of a beat) or time (e.g., every tenth of a second) are marked as keyframes. Keyframes can be selected at a predetermined or fixed offset in beats or seconds from a beat boundary (e.g., exactly on the beat, and every tenth of a beat thereafter) or time boundary (e.g., starting at the beginning of the song, and every tenth of a second thereafter). In some configurations, the offset and interval are selected without regard to the importance of the dance move.

All times and durations are typically measured in units of measures, beats, and ticks, but alternatively can be measured in units of seconds. Times are measured relative to the beginning of the dance, but alternative reference points are possible, such as the end of the dance, the start of the previous move, the end of the previous move, or any other moment in time within the timeline.

Each keyframe includes a time offset relative to the beginning of the move. In addition to timing information, each keyframe can include weighting information. In some embodiments, a weight is provided for one or more keyframes in the target performance. In some configurations, the weight spans the range 0.0-1.0, and can be thought of as an indicator of how important the keyframe score is to the move overall, where 0.0 means “not important” and 1.0 means “very important.” To compute a final score for a frame of an input performance with respect to a frame of a target performance, the score for the frame of the input performance is multiplied by the weight associated with the keyframe of the target performance.

In some embodiments, each keyframe can include weighting information for x, y, and z axes relative to the camera (explained below). Additionally or alternatively, each keyframe can include weighting information for x, y, and z axes relative to the entire skeleton in the target performance, or weighting information for x, y, and z axes relative to each “body zone” (limb-centered coordinate systems) in the target performance (explained below). In one implementation, relaxing the scoring is achieved by unevenly weighting the contributions of the x, y, and z axes to the Euclidean distance measurement above, where x, y, and z are taken to be in the left arm coordinate systems, right arm coordinate system, left leg coordinate system, or left leg coordinate system.

In addition to weighting information for the axes, the keyframe also includes weights for different bone groups themselves to emphasize performing a particular motion, e.g., moving the user's arms during the “shopping cart,” or deemphasizing other motions one, e.g., ignoring or forgiving poor leg position during “the shopping cart”. In some embodiments, a weight is provided for one or more joints within each keyframe in the target performance. In some configurations, the weight spans the range 0.0-1.0, and can be thought of as an indicator of how important the joint score is to the keyframe score, where 0.0 means “not important” and 1.0 means “very important.” To compute a score for a joint in a frame of an input performance with respect to the corresponding joint in a frame of a target performance, the score for the joint in the frame of the input performance is multiplied by the weight associated with the joint within the keyframe of the target performance.

Keyframes are placed wherever necessary on the timeline to capture the most important poses in the dance sequence. Often, keyframes are placed at eighth-note boundaries, but they may be spaced irregularly depending on the dance or move to be tested.

In a preferred embodiment, the target performance is expressed as mocap data associated with a Milo file. The Milo file contains a timeline and allows for events, tags, or labels to trigger events in the game. Advantageously, the target performance is aligned to the timeline. The Milo file is also typically associated with a music track, which is also aligned to the timeline. This allows the developer to assign events to certain portions of the music track. The Milo file also has instructional timelines for providing audio cues to the user (explained below). Another benefit of using the Milo file is the ability to mark parts of the timeline, and therefore parts of the target performance, as keyframes. Keyframes are placed at specific measures or beats on the timeline and represent times to test user input.

Comparing the input performance to the target performance input at a particular keyframe may be accomplished in several ways. In one embodiment, each keyframe has a time window associated with it, beginning before the keyframe and extending beyond it. The time window is typically symmetrical around the time of the keyframe, but may be adjusted for a longer intro if a move is difficult to get into or a longer outro if the move is harder to get out of. The time window is typically of a fixed width in seconds. Alternatively, the time window can be expressed as fixed width in a variable unit of time such as beats, so that the window expands and contracts as the dance tempo slows down or speeds up, respectively.

FIG. 2A provides an illustrative example. FIG. 2A shows a series of movements spread over four beats that begin a move called “Push It.” The first beat is a move marked “hands out”, the second is a move marked “hands in,” the third is a “right hand up”, and the fourth is “left hand up” move. In FIG. 2A, three keyframe windows are displayed, each centering on a beat: the first keyframe 200 is for the “Hands out” move at beat 1, the second keyframe 205 is for the “Hands in” move on beat 2, and the third 210 is for the “Right hand up” move on beat 3. The user's input, sampled a certain number of times per second, e.g., 30, is examined to determine if it matches the target performance. For example, on beat 1 (and for a period before and after beat 1 illustrated by the umbrella around 200) the user's input is sampled to determine if, in this case, the user's hands are stretched out in front of him in a way that matches the target input which is based on the mocap performance. Then, on beat 2 (and before and after), the user's input is sampled to determine if it matches the target performance where the user's hands are pulled back in. The windows around each keyframe are to allow for variation in time for the user to complete the move. Variation is allowed for in both time and positional displacement because rarely will the user have their limbs exactly in the expected position at exactly the right time. Additionally, as stated above, some leeway is provided because the camera is an inherently noisy input.

Allowing for Variation in Time

Referring to FIG. 2B, if any of the user's inputs match the target performance within a certain inner time window around the keyframe, e.g., in the range d_(−inner) to d_(+inner), the user is given full score for performing that portion of the move that aligns with that keyframe (+/− to allow for the user to reach the move early or late, and the allowances either before or after are not necessarily symmetrical). This is accomplished by examining each frame of input during the window and selecting the closest match.

Between an inner time window and an outer time window, e.g., in the range d_(−outer) to d_(−inner) and the range d_(+inner) to d_(+outer), a score is still given for performing the move, but the score for that performance is reduced as the temporal “distance” outside the inner window increases. Outside the outer windows, i.e., before d_(−outer) and after d_(+outer), respectively, no score (or a score of zero) is given for performing the move because the user is just too early or too late. The fall off function for the score during the periods of d_(−outer) to d_(−inner) and d_(+inner) to d_(+outer) is typically a variation of 1−x². This yields a parabolic shape that starts from 0 and builds to 1 between d_(−outer) and d_(−inner), and then falls from 1 to 0 between d_(+inner) to d_(+outer). More specifically, in one embodiment, the scoring curve is assembled piecewise:

For frames before d_(−outer), y(x)=0. For frames between d_(−outer) and d_(−inner):

${y(x)} = {1 - {\left( \frac{x - x_{0} + d_{- {inner}}}{d_{- {outer}} - d_{- {inner}}} \right)^{2}.}}$

For frames between d_(−inner) and d_(+inner) (including x₀), y(x)=1. For frames between d_(+inner) and d_(+outer):

${y(x)} = {1 - \left( \frac{x - x_{0} - d_{+ {inner}}}{d_{+ {outer}} - d_{+ {inner}}} \right)^{2}}$

For frames after d_(+outer): y(x)=0.

But other variations are possible as well, e.g., a linear function, a constant, a parabolic function, a square-root, 1/x, 1/(x^(n)) (e.g., inverse square, inverse cube, etc.), polynomial, exponential, logarithmic, hyperbolic, Gaussian, sine, cosine, tangent, or any combination or piecewise combination thereof.

Beneficially, in some embodiments, as shown in FIG. 2A, the windows for keyframes can overlap, e.g., keyframe 205 overlaps 200. In these cases, an input frame in the overlapping area is scored against both keyframes. The maximum score of all input frames that are scored against a given keyframe is assigned as the score for that keyframe. Any keyframe that the user can match, i.e., that his input falls within an umbrella for, is considered an “active keyframe” for that input frame.

Allowing for Variation in Position

As discussed above, the user's positional success is determined based on comparing the normalized input performance to the normalized target performance. When comparing the input performance to a keyframe (again, preferably done for each sampling of the input performance), the aggregate distance is taken between the two to determine how close the normalized input performance is to the normalized target performance of the keyframe. This can be done for the whole skeleton of the target performance or can be done on a limb by limb basis. Distances are calculated as the Euclidean distance between the normalized input performance's joint position in the input frame and the normalized target performance's joint position in the keyframe.

FIG. 3A shows a distance determination between the target performance skeleton (shown in outline) and the user's input (shown solid). The distance between the user's elbow joint 300 and the target performance skeleton's elbow 305 is determined, reflecting the error the user is committing in terms of positioning his limb. If a filter is just testing elbow position, the analysis stops with comparing 300 and 305. If the filter also tests wrist position, the distance is determined between the user's wrist position 310 and the target performance skeleton's wrist position 315. As shown in FIG. 3A, the user's elbow position is only slightly off the target performance's elbow, whereas the user's wrist significantly out of position. These differences are then used to determine how well the user is satisfying the filter. Although arms are shown in FIG. 3A, differences between the user's leg and the target performance's leg are determined similarly.

For hips, hip velocity is a vector from the hip position in the previous keyframe to the hip position in the current keyframe. The vector is divided by the amount of time elapsed between the keyframes. To normalize the hip velocity, the velocity vector is then divided by the length of the spine. Then the resulting vector is then used for Euclidean comparison similar to that described with respect to arms and legs. Advantageously, dividing by the length of the spine normalizes the velocity measurement to account for the size of the user, e.g., a child needs to displace his hips a smaller amount than a taller adult, in order to receive the same score.

In some embodiments, the total skeleton score is an aggregate (e.g., sum) of five different scores, i.e., left arm score, right arm score, left leg score, right leg score, and hip velocity score. These are each made up of score calculations themselves for the individual joints and represent how well the user performed the move for each “body zone”. For example, the left arm score is an aggregate of the wrist score and elbow score, and the leg score is an aggregate of the knee score and ankle score. Beneficially, displacement of the body, measured by hip velocity, may also be incorporated into the score calculation. Also beneficially, contributions to the aggregate skeleton score by the aggregate body zone score may be weighted per keyframe to enhance the contribution from zones that are more important to executing the keyframe pose. For example, if the left arm is most important to a particular pose, the weight of its contribution to the score can be increased, or contributions of other body zones' scores can be decreased, or some combination thereof. Beneficially, contributions to aggregate body zone score by individual joint score may be weighted per keyframe, to enhance contribution from individual joint positions that are more important to executing the keyframe pose. For example, the elbow is more important than the wrist for the “Funky Chicken” pose, so the weight of the elbow joint's score can be increased, or the weight of the wrist joint score can be decreased, or some combination thereof. Typically though, if a user's joint or body zone is in the correct position, the user will be given full credit for the correct position and the weight of that limb's contribution will not be decreased.

Referring now to FIG. 3B, like timing, there is a window of acceptable error for position. The error for position is determined based on the distance between the normalized input joint position and the normalized target joint position. If the distance is below a threshold (using the same convention as timing: d_(+inner)), e.g., 0.25 or less, the error is considered zero for that joint, so input frame receives a 100% score. If the distance is greater than the d_(+inner), the score will fall off quickly as the distance increases to some outer boundary, d_(+outer). Between d_(+inner) and d_(+outer), the input frame still receives some score, but the further the scored limb or joint is from the target position, i.e., the closer it is to d_(+outer), the less score the user receives. Once the joint's position is so far off position that the distance falls outside d_(+outer), the user receives no score (or zero score) for that frame. Unlike timing errors, which may represent times before or after the keyframe and may therefore be positive or negative, distances are always positive.

The score of an input from for a particular keyframe is determined aggregating the positional score and the timing score. In a preferred embodiment, the positional score for an input frame compared against a particular keyframe is then multiplied by the timing score for that input frame to produce an overall score for the input frame for that keyframe. If the score for an particular input frame is greater than the score of any other input frame for a particular keyframe, i.e., that input frame is the “closest” to the keyframe in terms of the combination of weighted timing and position scores, that score is the assigned score for that keyframe and is used to determine the player's overall score for the move. When the user has satisfied a certain percentage of the filters for the bar, e.g., 80%, the user is considered to have successfully performed the entire move for that bar (because it is unlikely that a user will satisfy 100% of the filters). In implementations with graduated feedback (discussed below), completing 80% may be “Perfect,” 60% may be “Good,” 40% may be “Fair,” and 20% may be “Poor.”

Compensating for the Limits of the Camera and User

The present invention overcomes one limitation of the user's ability to parse input presented on the display. Certain movements of the on-screen dancer along the z axis (into and out of the screen) are difficult for the user to parse precisely. For example, when the avatar's arm is held out directly in front of its body, and the wrist is then moved closer to or further from the avatar's body along the z axis, the degree of that motion is hard to see from the user's perspective. This is problematic for a dance game because the game may require the user to replicate this movement, and the user cannot easily judge the distance well enough to execute the movement well.

In one implementation of the present invention, this is overcome by unevenly weighting the contributions of the x, y, and z axes to the Euclidean distance measurement above. This has the effect of “flattening” the error space in a dimension if that dimension is difficult to detect visually. This is typically expressed as a front-to-back relaxing of the scoring along the z axis, because movements in a camera-based system towards the camera (forward) or away from the camera (back) are the ones being compensated for. The relaxation of scoring along an axis is automatically provided by the invention by reducing the contribution along that axis by a coefficient in the Euclidean distance calculation. The developer may also specify, for a given keyframe, coefficients for one or more axis to reduce or enhance the contribution of error along that axis to the final score.

The present invention also overcomes the limitation caused by occlusion that is inherent to any camera-based input. When a dance move requires one or more parts of the body to be moved behind other parts of the body, the occlusion of the joints makes it very difficult to determine their positions with accuracy. This is problematic because joints can be occluded in normal dance moves, such as when an arm goes behind the back, or when a move requires the user to turn sideways to the camera.

The present invention additionally overcomes a limitation with a user attempting to reproduce the target performance when the mocap for the target performance was executed by a professional dancer who is very flexible. This is problematic because a professional dancer can place his body in positions that cannot be achieved by a casual user, and therefore the user cannot score well on the move. For example, a professional dancer can touch his elbows together behind his back, but it would be unfair to penalize a typical user for this lack of flexibility, so the scoring for these moves can be relaxed.

In one implementation of the present invention, relaxing the scoring is achieved by unevenly weighting the contributions of the x, y, and z axes to the Euclidean distance measurement above, where x, y, and z are taken to be in the mocap performer's frame of reference. The frame of reference of the mocap skeleton is computed per-frame as a rotation about the z axis of the camera's frame of reference. The angle of rotation can be computed by finding the plane created by the shoulders and the center of the pelvis, finding the forward-facing normal, and rotating the frame of reference through the angle from the view plane normal to the forward-facing normal. Alternatively, the frame of reference of the mocap skeleton can be computed by starting with the plane created by both hips and the head.

In one implementation, relaxing the scoring is achieved by unevenly weighting the contributions of the x, y, and z axes to the Euclidean distance measurement above, where x, y, and z are taken to be in the left arm coordinate systems, right arm coordinate system, left leg coordinate system, or left leg coordinate system.

One the frame of reference has been rotated, relaxing scoring along an axis has the effect of “flattening” the error space in a dimension. For example, if a move requires the elbows to be pulled back very far, relaxing scoring along the z axis in the frame of reference of the mocap performer will reduce the distance the elbows need to be pulled back in order to achieve a good score. The relaxation of scoring along an axis is specified with the keyframe information as coefficients for the Euclidean distance calculation.

Beneficially, the game developer can manually weight certain moves to be more forgiving along any axis simply because a move is hard to perform.

In some implementations, weighting is based on the “confidence” that the camera system may provide for detecting a joint's position. For example, in some versions of Project Natal, the camera system provides “tracked” positional information in the form of a position for a joint and a confidence level that the position is correct. When the joint is off-screen, Natal also provides an “inferred” position. When a joint's position is inferred, e.g., when the joint is clipped or occluded, neighboring joints can be examined to better assess where the inferred joint is. For example, if an elbow is raised above the user's ear, there are only a few possible locations of the user's wrist, e.g., straight up above the elbow, down near the user's chin, or somewhere in between. In these scenarios, because the object of the game is to be fun, the maximum positional window, e.g., 0 to d_(+outer), is widened so that the filtering is looser to allow for greater variation in positional differences. Additionally, the inner window of “perfect” position, zero to d_(+inner), may also be widened.

In some embodiments, the invention will suspend the game if too much of the skeleton is occluded or off-screen for more than a threshold amount of time, e.g., 10 second, or 6 beats, rather than continuing to reward the user for incorrect positioning.

To assist the user in completing moves correctly, per-limb feedback is given to the user when performing a move. In some embodiments, if the user is not satisfying a filter for a limb, the game renders a red outline around the on-screen dancer's corresponding limb to demonstrate to the user where they need to make an adjustment. In some embodiments, the per-limb feedback is on the mirror-image limb from the limb that is not satisfying the filter. For example, if the user is satisfying the filter for both feet, the hips, and the left arm, but not satisfying the filter for the right arm, the game renders a red outline around the on-screen dancer's left arm. This indicates to the user that his right arm is not correct, since the user is facing the on-screen dancer and mimicking the on-screen dancer in mirror image.

Other per-limb feedback is also possible. In some embodiments, an indicator such as a “phantom” limb is drawn in the target location. Alternatively or additionally, an indicator is anchored on the errant limb and its direction and length are based on the direction and degree of error in the user's limb position. For example, if the user's wrist is below the target location, the game draws an arrow starting from where the user's wrist is located in the input performance and ending where the on-screen dancer's wrist is in the target performance. Alternatively, in embodiments where a representation of what the user is doing is displayed on-screen, the arrow is drawn starting from the user representation's wrist. In some embodiments, the indicator persists until the user satisfies the filters for the target performance's arms. In some embodiments, the intensity, geometry, material, or color characteristic of the indicator may be changed based on the degree of error for that limb. For example, the color of the indicator may become a more saturated red if the error for a limb becomes greater. Other highlighting may also be used, as may verbal cues such as “get your <limbs>movin'” where <limbs> is any body zone that is not satisfying the filter.

In some embodiments, there is an additional indicator showing how well the user is cumulatively satisfying all filters in a move, such as a ring of concentric circles under the on-screen dancer's feet. If the user has satisfied a certain percentage of the filters, e.g., 20%, the inner ring of circles is illuminated. When the user successfully performs the next threshold percentage of filters, e.g., 40%, the next set of rings is illuminated. This is repeated such that when the user has successfully performed the entire move, the outermost set of rings is illuminated. A notable side effect is that as the user is satisfying filters, the ring grows under the on-screen dancer's feet. In some embodiments, the success indicator moves with the on-screen dancer, e.g., is based on the position of the mid-point of the pelvis of the skeleton of the target performance, so that the user does not have to look at a different part of the screen to determine how well he is performing. While described in terms of discrete rings, the effect can occur continuously. Also, other shapes or graphical effects may be used, e.g., a meter indicating how many filters are satisfied, and bigger and bigger explosions or fireworks may be displayed to indicate the user satisfying more and more filters. Beneficially, in some embodiments, a qualitative evaluation is also displayed, e.g., good!, great!, or awesome!

Beneficially, the setting of the game may react to changes in the user's performance. For example, as the user is satisfying filters, a crowd of spectators may begin to circle or gather near the on-screen dancer. Or the venue in which the on-screen dancer is performing may become brighter, more colorful, or transform into a more spectacular, stimulating, or elegant venue. Correspondingly, if the user is performing poorly, on screen crowds may dissolve and walk away or the venue may become darker, less colorful, or transform into a less spectacular, stimulating, or elegant venue. Changes in venue and setting can based on the consecutive number of moves completed, e.g., after five successful moves the venue and dancers on screen change to an “improved mode.” After ten successful moves the venue and dancers may change to a “more improved mode” and so forth. Changes in venue and setting can also be based on the overall score of the input performance, or on the overall score of the input performance as compared to an average performance.

Dance Training

In some implementations, there is a trainer mode to assist the user in learning a dance. In trainer mode, a dance move is demonstrated using the on-screen dancer and audible cues and no score is kept. The user is then expected to mimic the on-screen dancer's movements. If the user performs the move correctly, an indicator indicates he has performed the move correctly, the next move is demonstrated, and the user may continue practicing. If the user does not perform the move correctly, the move is repeated and the user must keep trying to perform the move before he is allowed to continue.

When the user does not perform the movement correctly, additional instruction is provided. In some embodiments, a verb timeline, normal_instructions, runs simultaneously with the target performance, and has multiple verb labels indicated on it. The verb labels refer to pre-recorded audio samples that have both waveform data and offsets. The offset indicates where the stress—or important accent—is located in the waveform data. For example, if the wave form data represents the spoken word “together,” the offset indicates the first “e” sound such that playback of “together” begins before the point of the verb label on the timeline and the playback of the “e” sound aligns with the point of the verb label on the timeline. This allows the developer to specify which point on the timeline a particular syllable of the audible cue falls on. As the target performance is displayed, the waveform data is played back according to the positions of the verb labels and the offsets to provide instruction to the user that is synchronized with the movement of the on-screen dancer.

In some embodiments, a second verb timeline, slow_instructions, runs simultaneously with the target performance and may have a different or more detailed set of verb labels indicated on it. These verb labels also refer to pre-recorded audio samples with waveform data and offsets, similar to those described above. When the user cannot successfully perform a particular move after a threshold number of attempts, the game slows down and the slow_instructions timeline is used to provide additional, more detailed instruction to the user. For example, on the normal_instructions timeline, there may be a verb label that refers to an audio cue of “step and clap.” On the slow_instructions timeline, this may be represented by three labels, “left foot out,” “right foot together,” and “clap.” When the game is slowed down, rather than referencing verb labels on the normal_instructions timeline to trigger audio cues, the game references the verb labels on slow_instructions timeline. Beneficially, when the game is slowed down, there is enough time between body movements that the additional instructions can be played. In some implementations, the slowed down audible cues are stored in a different file or a different audio track than the normal speed audible cues. When the user has successfully reproduced the move, the game is sped back up and the normal_instructions timeline is used, or alternatively, the additional instructions are muted or not played.

Fitness Mode

In some embodiments, there is a calorie counter displayed on the display during the dance game to encourage users to dance. As the user dances, the calorie counter is incremented based on the Metabolic Equivalent of Task (“MET”, and generally equivalent to one kcal/kg/hour) value of what the user is doing. As an example, sitting on the couch has a MET value of 1. Dancing and most low impact aerobics have a MET value of approximately 5. High impact aerobics has a MET value of 7. To determine the MET for a frame of input skeleton data, the joint velocities for all joints on the user's input skeleton are summed. To determine a joint's velocity, the joint's position (in three dimensional space) in the previous frame is subtracted from its position in the current frame. This yields a vector. The vector is divided by the elapsed time between the previous frame and the current frame. The length of the resulting vector is the velocity of that joint.

Once the sum is determined, it is exponentially smoothed to reduce transient noise. The result is a mapped to a MET scale of 1 to 7 with, in some embodiments, a sum of 0 mapping to 1 and a sum of 40 mapping to 7, with 1 representing no movement and 7 being a large or vigorous movement. Beneficially, any sum less than five can map to 1 to account for the noise inherent in the input. The mapping can be linear, piecewise linear, or any interpolation function. Using the MET value, and knowing the user's body weight (which can be input via a menu, or can be inferred based on the camera's input and a body/mass calculation), calories burned can be estimated.

METs are converted to calories-consumed-per-second using the equation of (METs*body weight in kilograms)/seconds in an hour=calories/second. This value can then be displayed on the screen, or summed over time to produce a value displayed on the screen for total calories. The value for calories/second or total calories can stored as a “high score” and, in some embodiments, can be used to increase or decrease the tempo of a song or the difficulty of a series of moves. Advantageously, this allows the user to track total calories burned, average rate burned, and other statistics over time.

Reusing Elements of a Mocap Performance

In some embodiments of the dance game, the most difficult or complex target performance is recorded as one linear mocap session and only parts of the recorded performance are used to simulate easier versions of the performance. For example, in FIG. 4, the most difficult or “expert” dance routine comprises a series of movements following pattern of A, B, C, D, A, B, D, C. In some embodiments, these moves are marked on the expert timeline using “move labels,” which each denote the name of a move animation and where in the timeline the move animation begins. In other embodiments, these moves are marked on a timeline that parallels the expert timeline, called “anim_clip_annotations.” Rather than capture multiple target performances for each difficulty level, e.g., a dance with the previous pattern for “expert,” and progressively simpler sequences for “hard,” “medium,” and “easy,” the game can re-use the motion capture recorded for expert to simulate a pattern for any of these difficulty levels by referring to the move labels on the expert timeline. For example, given the expert sequence above, the easy sequence might be A, B, A, A, A, B, A, A. In other words, for the easy routine, a repetition of the A move replaces both the C and D moves.

The easier routines can be created programmatically, e.g., the game determines how often to repeat a movement based on a difficulty value for the move, favoring easier moves for easier difficulty levels. The easier routines can also be authored by the game developer by creating an “easy” timeline and referencing the move labels on expert track. An example of this is the “easy” track in FIG. 4, where the A sections reference the A move in the expert track and the B sections reference the B move. C and D sections, that involve a more complicated knee raise (C) and knee slap (D), are omitted from “Easy” so the user only needs to repeat the “arms out” move of A or “arms up” move of B.

Reusing moves allows space savings on the storage medium (only one target performance needs to be stored) and it allows the game developer to later change the performances of the other difficulties after the game is released if it is later determined that the performance for a difficulty setting is too hard or too easy or is boring. Since the expert performance is linear, each A section in expert will be slightly different because the mocap actor likely did not have his limbs in the exact same position every time. Examples of this are A′ and B′ where the skeletons are similar to A and B respectively, but the arm positions are slightly different. To make an easier difficulty target performance, the A move that is repeated in the easier difficulties can be A or it can be A′, or some combination. In some embodiments, a move that is repeated in an easier difficulty uses the most recent version of that move in the timeline. In some embodiments, a move that is repeated in an easier difficulty uses the earliest version of that move that appeared in the routine. Beneficially, the animations from the expert track can also be reused when creating the “easy” performance.

A sequence of moves for an easier routine may correspond to a sequence of moves in the original expert linear mocap such that a specific pattern of moves is present in both (although they may not correspond on the timeline). In this case, the sequence of moves may be copied from the expert performance into the desired position in the easier routine's timeline. But if a sequence of moves for an easier routine does not correspond to a sequence of moves in the original expert linear mocap, individual moves may be separately copied from the expert performance into the desired position in the easier routine's timeline. Beneficially, copying larger sequences of moves from the linear mocap produces sequences with fewer animation artifacts.

Animation Blending

When moves or sequences of moves are used in easier difficulties, the moves can abut other moves that were not adjacent in the linear mocap. The transitions in the move animations between these moves can be jarring, since the skeleton in the last frame of one move can be in a completely different pose than the first frame of the next move, which would produce a sudden, nonlinear animation. Animation blending can be used to transition smoothly from the end of one move to the beginning of the next move in the sequence, if the two moves were not adjacent in the linear mocap. Using the example above of an expert performance following the pattern of A, B, C, D, A, B, D, C, when creating the easier difficulty performance, there may be a pattern of A, A that is not part of the linear mocap. Animation blending is used to transition from the end of the first A animation to the beginning of the same A animation to produce an A, A pattern. In one embodiment, the last beat of the move before an animation transition is blended with the beat before the beginning of the next move. In the example of the A, A pattern, the last beat of the A move is blended with the beat before the A move for the duration of one beat. Then the animation continues with the first beat of the second A move.

In some cases, the animation blending technique described above produces animations that are still jarring. This is often due to the large differences between the pose at the end of one move and the pose at the beginning of the next move, that can't be overcome through simple blending. In these cases, the animation can appear to jerk from one position to another during the transition, or to move in a way that's physically impossible. In some embodiments, additional mocap is recorded to produce bridge animation segments. A bridge animation segment is designed to make the transition between two other animations smooth. For example, using the example above, if the end of the A move was a very different pose than the beginning of the A move, a simple animation blend might produce a poor result. An A, A bridge animation segment would be recorded, wherein the actor would actually perform the transition from the end of the A move to the beginning of the A move. In one embodiment, the bridge animation segment is three beats long. The next-to-last beat of the first A move is blended with the first beat of the bridge animation segment in such a way that contribution from the bridge animation segment is interpolated linearly over the course of the beat from 0% to 100%. The second beat of the bridge animation segment is played without blending, then the first beat of the second A move is blended with the third beat of the bridge animation segment in such a way that the contribution from the bridge animation segment is interpolated linearly over the course of the beat from 100% to 0%. The bridge animation segment may be any number of beats long, for example two beats, and the blending can also be done over the course of any number of beats, for example two beats. The interpolation may be done in a way that is not linear, such as parabolic, inverse-squared, etc.

In some embodiments, a table is provided that is keyed by the start and end move labels associated with two animations that may abut. If a bridge animation segment is required to produce a smooth transition between the associated animations, the table will contain an entry indicating the bridge animation segment that should be used. This table is consulted for all pairs of animations that are displayed.

Beneficially, the move animations and the results of the animation blending, e.g., from A to A, or from prior move to first A or from second A to next move, can be used as the target performance, and can therefore be scored similarly to the normal gameplay performance. This provides a fluid game experience and rewards users that accurately mimic the dancer on the screen.

In a training mode, it is often necessary to isolate and repeat a move or series of moves, with a gap in between the repetitions. For example, when demonstrating the A move, it is useful for the game to count in the beat while the animation is in an idling state, then execute the move animation, then return to an idle animation. This can be accomplished in a way that is similar to the bridge animation segments described for gameplay above. In one embodiment, a three beat bridge animation segment of the transition from an idle state to the first beat of a move is recorded as mocap data. This is blended with the idle animation and move animation as described above.

FIG. 5 shows one embodiment of an authoring system for the dance game. In FIG. 5, the keyframes 500 are depicted with their respective timing umbrellas. Each body zone being tested 505 is shown as having a corresponding portion of the filter to be satisfied (each square in the rectangle 510). The move is completely satisfied when all body zone filters are satisfied (although in some difficulty settings, only a percentage of the body zone filters need to be satisfied). The labels 515 a, 515 b, 515 c (Hip_Hop_Break.move, Arm_Twist_R.move, and Arm_Twist_L.move, respectively) applied to each move are shown on the timeline 520. As stated above, these labels can be reused to create easier dance routines based on the mocap recording. The mocap skeleton 525 shows the desired joint movements, and the input skeleton 530 shows what the user is currently inputting. Look-ahead icons show the user what move is coming next, e.g., Arm Twist, and an icon representing the current move is displayed prominently at current move location 535. The dancer 540 on screen is a representation of what the user is supposed to input and the skeleton of the on-screen dancer 540 resembles that of the mocap skeleton 525. FIG. 5 also depicts elements shown during play of the game such as the onscreen dancer 540 and move locations, e.g., 535.

Prompting the User to Perform Dance Moves

In some embodiments, the user or player can be prompted or instructed to perform a series of dance moves. As used herein, the term “dance move” can refer to one or more motions or movements, a static pose, a series of poses, or any combination thereof. For example, a dance move can include body, limb, or joint movements, such as twisting an arm, lifting a leg, or moving the body. A dance move can also include holding the body or a portion of the body stationary or in a particular pose while moving only one limb. Additionally or alternatively, a dance move can include holding a body part or limb, e.g., the head or an arm, in a specified position while other parts of the body are in motion.

The player is prompted or instructed to perform a series of dance moves by displaying icons indicative of the dance moves on the display. For example, one or more icons can be displayed to indicate the dance move the player should currently be performing, the dance moves that the player should perform in the future (i.e., upcoming dance moves), and dance moves that the player should have already performed. In some embodiments, the gameplay display includes specific regions, locations, or positions where icons are displayed. The term location will be used herein to describe these regions, locations, or positions, and so the terms are used interchangeably with respect to where an icon is displayed A location can be, for example, based on a fixed coordinate or a set of coordinates on the gameplay display or a coordinate in the space (e.g., 3D or 2D space) represented on the gameplay display. Naturally, a location is not limited to just a fixed coordinate on the display, and can include any other coordinate or set of coordinates within a specified distance from the fixed coordinate, e.g., the location can be an area on the screen bounded by a rectangle or circle or other shape.

In some embodiments, the locations on the display are associated with particular temporal reference points. Specifically, each location conveys when the player should perform or have performed the dance moves represented by the icons displayed at that location. For example, the icon representing the dance move that the player should currently be performing is displayed at a particular fixed location or position on the display. As illustrated in FIG. 5, this location is current move location 535. Any time an icon is displayed in location 535, the dance move indicated by the icon in that location is the move the player should currently be performing. In the illustrated embodiment, the current dance move is the “Hop Hop Break” and an icon representing the “Hop Hop Break” is shown at current move location 535.

In the illustrated embodiment, the icon representing the current move is shown at a prominent location, such as at approximately the vertical midpoint of the display, to make it easier for the player to see the move In FIG. 5, the current move location 535 is displayed at a horizontally left-most and vertically centered position on the display, relative to the other icons. The icon for the current dance move can also be displayed larger than other icons on the display, again, to facilitate the player seeing the dance move they are supposed to be performing. In some embodiments, the icon for the current dance move is highlighted, displayed in different color than other icons on the display, or otherwise embellished to distinguish the current move icon from other icons.

In some embodiments, one or more icons for the dance moves that the player should perform after the current dance move (e.g., the next, or “future,” dance moves) are displayed at one or more fixed or predetermined locations on the display. As illustrated in FIG. 5, the next move icon is displayed at the next move location 550 on the display, which is positioned below and to the right of the current move location 535. Icons displayed at next move location 550 indicate which dance move the player should perform after the current dance move. Additional future moves can also be displayed, e.g., at a location offset from the next move location 550. For example, a future move icon is displayed at location 555 on the display to indicate which dance move the player should perform after the next dance move, i.e., two dances moves from the current dance move.

As the song progresses, the location at which each icon is displayed changes. For example, the icon displayed at next move location 550 (indicating the next move) will be displayed at the current move location 535 at a time approximately when the player should perform that move. “Approximately” is used here to indicate that the changing of where the icon is displayed does not have to occur exactly with the time the player should perform the dance move. The icon representing the current dance move can be displayed in current move location 535 when the player is to start performing the dance move, slightly before the player is to start performing it, slightly after (e.g., in the case of video lag), etc. In some of these embodiments, when the icon displayed at next move location 550 is displayed or moved to current move location 535, the dance move icon for two moves ahead, displayed at future move location 555, is then displayed or moved to next move location 550. To a user, the movement of the icons from location to location may appear as a wheel of pictures that is rotated at certain time intervals, e.g., every two beats, every four beats, or a mix of these. While the intervals associated with a dance move or an icon can be any number of beats or any length of time, it is important to note that the intervals last longer than one beat. Thus, the icon representing the move stays in a fixed location for the duration the interval, e.g., two beats, four beats, etc. This is different than traditional dance or rhythm games where an indicator continually scrolls towards a timing bar and the user is expected to perform the move when the icon and the timing bar overlap. In one embodiment, each rotation moves a particular icon counterclockwise into a new location in time with the beginning of a new move. In some embodiments, moves may span multiple measures and the turnings of the wheel are not spaced evenly in time, but are based on when the next move is designated on the timeline.

In some embodiments, one or more icons for the dance moves for prior dance moves, i.e., moves that the player should have performed prior to the current dance move, are displayed at fixed or predetermined locations or positions on the display. As illustrated in FIG. 5, an icon representing a previous dance move is displayed at previous move location 565 or position on the screen above and to the right of the current dance love location 535, and indicates the dance move the player should have performed prior to the current dance move. Additional past moves can also be displayed, e.g., further offset above and to the right of the current move location 535.

The icons displayed at current move location 535, next move location 550, previous move location 565, and any other locations are changed as the song progresses. In order to prompt or instruct a player to perform a series of dance moves, a first icon representing a first dance move is displayed at current move location 535 to indicate that the player should perform the first dance move. At or about the time the player should begin performing a second dance move, a second icon representing the second dance move is displayed at current move location 535 to indicate that the player should perform the second dance move.

Still referring to FIG. 5, timeline 520 specifies a series of dance moves. The labels 515 a, 515 b, 515 c (Hop_Hop_Break.move, Arm_Twist_R.move, and Arm_Twist_L.move, respectively) refer to particular dance moves, and their positions on timeline 520 denote the relative sequence of the dance moves. For example, timeline 520 specifies the following sequence of dance moves: “Hop Hop Break,” “Hop Hop Break,” “Arm Twist,” etc.

Timeline 520 can include one or more time intervals (e.g., time intervals 545 a-545 d). In some embodiments, each time interval is associated with a dance move. For example, time interval 545 a is associated with the dance move “Hop Hop Break,” time interval 545 b is also associated with the dance move “Hop Hop Break,” time interval 545 c is associated with “Arm Twist” for the right arm, and time interval 545 d is associated with “Arm Twist” for the left arm. In some embodiments, the time interval is when the on-screen dancer 540 will perform the associated dance move. Separate from the performance of the on screen dancer 540, in some embodiments, the time interval is the interval when the player should perform the associated dance move. Furthermore, the time intervals associated with dance moves do not necessarily need to be contiguous. For example, a time interval may not be associated with a particular dance move and can be a free period, allowing the user to improvise a dance move, and there can be an icon indicating this freestyle period.

In some embodiments, the player is prompted or instructed to perform a series of dance moves by displaying icons related to the dance moves based on the sequence that timeline 520 specifies. For example, an icon representing a dance move is displayed at current move location 535 to indicate that the player should perform the first dance move. In some embodiment, the icon representing the dance move is displayed at current move location 535 for the entire duration of the time interval associated with the dance move. In this example, an icon representing “Hop Hop Break” is displayed at current move location 535 for the duration of time interval 545 a, and then an icon representing “Hop Hop Break” is displayed at current move location 535 for the duration of time interval 545 b. Then an icon representing “Arm Twist” for the right arm is displayed at current move location 535 for the duration of time interval 545 c, and then an icon representing “Arm Twist” for the left arm is displayed at current move location 535 for the duration of time interval 545 d. Thus, for particular time intervals on timeline 520, there is an associated dance move, and an icon representing that dance move is displayed at current move location 535 during that time interval.

In some embodiments, the icon representing a dance move can be displayed at current move location 535 for a different interval of time than the interval of time associated with the dance move specified by the timeline. For example, the icon can be displayed at current move location 535 for a portion of the interval of time associated with the dance move (e.g., at the beginning) The icon can be displayed at current move location 535 for an interval of time that intersects the interval of time associated with the dance move, but is not identical to the time interval, e.g., the icon can be displayed at current move location 535 just before or after the beginning of the interval of time associated with the dance move.

In some embodiments, the time interval that an icon is displayed for corresponds to musical events. For example, during gameplay, the beginning of the interval can align with the downbeat of a measure. Additionally or alternatively, the time interval can align with the third beat of a measure. Alternatively, it can align with the second or fourth beat of a measure, on so on. These are just examples and the invention is not limited to aligning with any particular beat.

In some embodiments, the display of other icons, in addition to the icon representing the current dance move, are also based on the sequence timeline 520 specifies. One or more icons for the dance moves that the player should perform after the current dance move (i.e., the future dance moves) and/or one or more icons for the dance moves that the player should have performed prior to the current dance move (i.e., past dance moves) can be displayed. For example, an icon representing “Hop Hop Break” can be displayed at current move location 535, an icon representing “Arm Twist” for the right arm can be displayed at next move location 550, and an icon representing “Hop Hop Break” can be displayed at previous move location 565 for the duration of time interval 545 b. Thus, as specified by timeline 520, an icon representing the dance move that the player should currently be performing, is displayed at current move location 535, an icon representing the next dance move is displayed at next move location 550, and an icon representing the previous dance move is displayed at previous move location 565.

In some embodiments, the icon for the next dance move dance move is translated, visually shifted, “flipped,” rotated, or moved from being displayed at next move location 550 to current move location 535. Similarly, the icon displayed at current move location 535 is translated, visually shifted, “flipped,” rotated, or moved to previous move location 565. “Translated” is used herein to describe changing the location that an icons is displayed, but any visual effect can be applied, such as moving, dragging, shifting, flipping (like the icon is a card on deck of cards), rotated, or other visual indicators of motion.

As an example, at or about the end of time interval 545 a or the beginning of time interval 545 b, the icon representing “Hop Hop” break that is displayed at current move location 535 is translated to previous move location 565, indicating that the time for performance of that move has ended. The icon representing “Hop Hop break” that is displayed at next move location 550 is translated to current move location 535, indicating that the player should now perform that move. The icon representing “Arm Twist” for the right arm that is displayed at future move location 555 is translated to next move location 550, indicating that “Arm Twist” for the right arm will be the next dance move the player should perform.

In some embodiments, the translation is animated by, for example, sliding the icon from its old position to its new position. As discussed above, the icon's size can also change, e.g., the icon can grow larger or shrink, based on whether it is being displayed at current move location 535 or another position or location. At the time of the translation, other graphics may also be displayed to draw the player's attention to the newly translated icon. For example, the icon may flash or change color.

An icon represents a dance move in various ways. FIG. 6 depicts an exemplary icon 600 representing a dance move. In FIG. 6, icon 600 represents the dance move “Hop Hop Break.” Icon 600 includes outlines 605 and 610 of bodies in poses related to the dance move “Hop Hop Break.” In some embodiments the icon can show a stick figure of a body in a pose related to the dance move (not shown).

An icon can also show the name or a written description of the dance move it represents. For example, icon 600 includes the text 615, which is the name of the represented dance move “Hop Hop Break.” In FIG. 6, icon 600 includes one or more indicia of motion related to the dance move that the icon represents. Specifically, the icon may indicate how a body part should be moved during the dance move. For example, icon 600 includes arrows 625 that indicate that the arms should be moved from a position above the players shoulder to down around the player's hips during performance of the “Hop Hop Break.” An icon can also include an indicia of repetition of motion. The indicia are not limited to the movement of just a body part—they may also indicate a direction a user is supposed to move his whole body, e.g., a step or a jump. An icon can also include indicia that a portion of the dance move should be repeated. For example, icon 600 includes repetition indicia 630 (in FIG. 6 a “D” for “double”) which indicates that the last knee raise of “Hop Hop Break” should be repeated.

In some embodiments, an icon includes an animated depiction of the dance move. In these embodiments, the outline of the figure moves to show what the dance move looks like. In some embodiments though, only a portion of the body (e.g., arms), performs the movements made during the dance move. For example, if the legs are not an important part of the dance move and the player is supposed to simply stand in place, the animated icon may not move the legs and instead just animate the complicated arm and head movements.

Beneficially, in some embodiments, an icon includes an indication of one or more body parts whose role is important to the dance move that it represents. A body part that is important can be any portion of the body. For example, an important body part can be the torso (e.g., including the chest, arms, hands, and head) or the lower portion (e.g., including the waist, hips, one or both legs, one or both feet, etc.). The role of the body part can be the body part's position, velocity, direction of movement, or any combination thereof.

To indicate which portion of the body is important, in some embodiments the icons include visual markings on the outline or figure indicating the importance. For example, the important body part can be highlighted or drawn in a different color than the rest of the figure. In some embodiments, importance is indicated by filling in the depiction of the body part with a different color. Referring again to FIG. 6, icon 600 represents a move called the “Hop Hop Break,” which involves raising the right knee. Icon 600 includes highlighting 619 the legs in the first part of the move, and then highlighting 620 of the right leg and 621 of the arms to indicate that their roles are important to the dance move “Hop Hop Break”.

FIG. 7 depicts exemplary icons representing dance moves. Icons 710 a-710 g each represent a dance move. As previously described, each of icons 710 a-710 g includes an indication of one or more body parts whose role is important to the dance move that it represents. The indication in each is represented by highlighted body parts 713 a-713 g. Each of icons 710 a-710 g also includes one or more indicia of motion 716 a-716 g related to the dance move that the icon represents. In the illustrated embodiments, indicia 716 a-716 g have the following meanings: 716 a indicates backward movement in space, 716 b indicates a distinct hit or impact with the ground, e.g., a stomp, 716 c indicates smaller arm sweep, 716 d indicates longer arm sweep, 716 e indicates lateral movement, 716 f indicates a gesture, and 716 g indicates rotation.

As described throughout this specification, a player's performance of a dance move can be scored. In some embodiments, one or more attributes of an icon are changed based on the score calculated for the player's performance of the move represented by the icon. For example, the icon's color, brightness, background, or size can be changed based on the score. In some embodiments, after a move is performed, and the icon is moved to the previous move location 565, the icon's background color is colored red for a poorly performed move, colored green for a move partially performed, or colored blue for a correctly performed move.

FIG. 8 is a flow diagram 800 depicting a method of prompting a player to perform a series of dance moves. The method depicted by flow diagram 800 can be implemented on, for example, a game platform (like the one described in FIG. 1A) which is typically in signal communication with a display.

The exemplary method begins with providing a timeline (step 810). The timeline includes one or more time intervals, and each time interval can be associated with a dance move. For example, in one embodiment, the timeline includes a first time interval associated with a first dance move, and a second time interval associated with a second dance move. The timeline and time intervals can be represented by any suitable data structures on media readable by the game platform, as is known in the art. For example, the timeline can be embodied as a list or array of time intervals in a game platform's memory, with each time interval including a value indicating its associated dance move. Typically a timeline is produced through an authoring system, such as the system shown in FIG. 5, but it may be auto-generated as well based on the user selecting a series of dance moves or a particular genre of dance or song that the user is interested in performing.

Prior to a third time interval associated with the first dance move, a lookup is performed (step 820) using the first dance move as the index. For example, referring to FIG. 5, and using the time interval of 545 b as a reference, at a time prior to time interval 545 b, a memory lookup is performed based on the dance move that is associated with time interval 545 b (in this case “Hop Hop Break”). This lookup identifies the icon associated with “Hop Hop Break,” which is then used as a visual asset—the icon—when it is time to indicate that the player should perform the Hop Hop Break move. In some embodiments, the memory lookup can involve using an integer assigned to the dance move as an index into an array or hashtable of icons. In some embodiments, a database of icons can be indexed by their associated dance moves or dance move names. In this example the first time interval associated with the first dance move and third time interval associated with the dance move are the same time interval, and any icon displayed for the third interval is effectively displayed for the first interval (because they are the same). In some embodiments, the third time interval is not the same as the first time interval associated with the dance move specified by the timeline, and the third time interval can start just before or just after the start of the first time interval. Note, in some embodiments, where a move is repeated, e.g., Hop Hop Break associated with time interval 545 b is the same move as Hop Hop Break 545 a, it is not necessary to lookup the icon again. This increases efficiency of the program by reducing table lookups.

After the memory lookup is performed, the icon representing the first dance move is retrieved from memory (step 830). Icons can be bitmaps, compressed images, vector graphics, other image types known in the art, or animations. Retrieval of the icon from memory can involve retrieving the icon's data from an array of icons or from a database. As previously noted, an icon can include outlines of bodies in poses related to the a dance move, the name or a written description of the dance move it represents, and/or an indication of one or more body parts whose role is important to the dance move that it represents or an indication of any repetition, or any combination of these.

After the icon is determined, the icon representing the first dance move is displayed at the current move location on the display during the third time interval (step 840). For example, referring again to FIG. 5, the icon for “Hop Hop Break” can be displayed at current move location 535 for the time interval 545 b in order to prompt the user to perform the dance move during that time interval.

Next, prior to a fourth time interval associated with the second dance move, a lookup in memory using the second dance move is performed (step 850). For example, at a time prior to time interval 545 c, a memory lookup is performed based on the dance move “Arm Twist,” which is associated with time interval 545 c. The lookup identifies the icon associated with the “Arm Twist” dance move. The memory lookup can be performed using techniques similar to those described with respect to step 820. After the memory lookup is performed, the icon representing the second dance move is retrieved from memory (step 860).

Then, the icon representing the second dance move is displayed at the current move location on the display during the fourth time interval (step 870). For example, the icon for “Arm Twist” is displayed at current move location 535 for the time interval 545 c. This prompts the user to perform the dance move “Arm Twist.” In some embodiments, the icon representing the second dance move replaces the icon representing the first dance move at current move location 535. In some embodiments, the icon representing the second dance move is translated from another location on the display (e.g., next move location 550) to current move location 535 as previously described.

Determining an Active Player With Multiple Skeletons Available

When more than one player is within the field of view of the camera, the system must determine which player is the active player, and which player is the inactive player, for the purposes of shell navigation and gameplay.

For this discussion of determining the active player, it is useful to define two terms. A skeleton is considered “valid” if it is not sitting and it is facing the camera. Also, “queuing a skeleton for activation” means setting a timer to go off at particular time, at which point the active skeleton is set to be inactive and the queued skeleton is set to be active.

In some embodiments, queuing a skeleton for activation does not set a timer if that skeleton is already queued for activation. In some embodiments, queuing a skeleton for activation does not set a timer if any skeleton is already queued for activation. In some embodiments, the timer is always set for 1 second in the future.

In some embodiments, determining the active player begins when a frame of skeleton data is received by the system. In some embodiments, a frame of skeleton data is received and processed every thirtieth of a second. In each frame, there may be any number of distinct skeletons in the skeleton data. At any time, one of the skeletons in the skeleton data is considered active, and the rest, if any, are considered inactive.

In some embodiments, if the active skeleton is behind—further from the camera than—an inactive skeleton, or the active skeleton is near the edge of the camera's view, then the system can search for an inactive skeleton to activate. In some embodiments, the active skeleton is considered near the edge of the camera's view if its centerline is in the left or right fifth of the camera's view. If there is an inactive skeleton nearer to the center of the camera's view than the active skeleton, the inactive skeleton can be queued for activation.

In some embodiments, if an inactive skeleton that is queued for activation is not present in the current frame, or is not valid, or is crossing its arms, or is behind the active skeleton, the queued activation of that skeleton is cancelled. In some of these embodiments, the queued activation of the inactive skeleton is not cancelled if the active skeleton is near the edge of the camera's view.

In some embodiments, if the active skeleton is not in the frame, or if the active skeleton is invalid, but there is at least one inactive skeleton, the system immediately activates one of the inactive skeletons.

In some embodiments, if an inactive skeleton's hand is raised and the active skeleton's hand is not raised, the inactive skeleton is queued for activation or scoring for dancing. Beneficially, this allows a user to express intent to control the shell or have their performance be the one that is graded by raising their hand.

Multi-Player Modes—Animation

A dance game can be more satisfying if it provides multi-player competitive or cooperative game modes. One difficulty that arises is that the original song and the choreography for the song may not be balanced such that two players can have equal opportunities to contribute to their competing or combined scores (for competitive and cooperative modes, respectively). In addition, the song may be too short to give either player sufficient opportunity to perform for a satisfying duration.

In one embodiment, the invention addresses these shortcomings by artificially extending the song and its choreography by looping back to previous parts of the song to give multiple players an opportunity to dance the same section. Beneficially, this provides the same potential scoring for all players in a multi-player mode. Although animation blending in this context is primarily intended for looping back to previous parts of a song, the mechanism applies equally well to any non-contiguous jump between points in the song, or jumps between jumps points in more than one song.

In one embodiment, a section that is to be repeated in multi-player mode is indicated in a MIDI file, in a track called multiplayer_markers, aligned with the audio timeline. Alternatively, the markers can be located in the same MIDI track as other MIDI data, or can be indicated across multiple MIDI files, in respective tracks called multiplayer_markers, or can be located in the same MIDI track as other MIDI data, spread across multiple MIDI files. The section indicators are special multiplayer text events, MP_START and MP_END. During gameplay, when the game time reaches the time of the MP_END text event the first time, the game time jumps to MP_START and the other player begins play. When the game time approaches the time of MP_END the second time, it continues without jumping.

In one embodiment, when the game jumps to a non-contiguous point in the song, for example to the point designated by MP_END, animation blending can be used, as described above for creating easier difficulties, to make the transition less jarring. For example, if it is determined that a single section should be repeated, the animation of the last beat of the section can be blended with the animation the beat before the beginning of the first beat of the section. The animation blending can take place over two beats, or it can extend over multiple beats. In all cases, the animation for the end of the section is blended with the animation before the beginning of the section such that the blend begins with 100% contribution from the end of the section and ends with 100% contribution from before the beginning of the section. The interpolation can be linear, or can use any other interpolating function such as polynomial.

As in animation blending for easier difficulties, the blend from the end of a section to the beginning of the section can produce an unrealistic movement. In this case, bridge animation segments can be used, as discussed above regarding producing an easy difficulty.

Multi-Player Modes—Audio

Extending a song by looping back to previous sections brings with it some inherent difficulties in animation. The invention addresses these difficulties using animation blending and bridge animations. Non-contiguous jumps in the timeline of the song, or jumps between songs, also cause difficulties with continuity of the audio track. As with animation, the audio for the end of a section does not always merge smoothly into the audio for a section that is not adjacent in the song's timeline. Jarring discontinuities in the audio track can interfere with the users' enjoyment of multi-player modes. The invention provides seamless audio track transition playback during multi-player modes to address this difficulty. For example, if the audio follows the sequence of sections A, B, C, it may be desirable in a multiplayer mode to loop from the end of the B section back to the beginning of the B section. The invention allows this extension to happen seamlessly.

In one embodiment, a section that is to be repeated in multi-player mode is indicated in a MIDI file in a track called multiplayer_markers, with MP_START and MP_END text events, as described above. In the example above, an MP_START text event in the MIDI file would be aligned with the beginning of the B section, and an MP_END text event would be aligned with the end of the B section, indicating that the entire B section is to be repeated in multi-player mode. Alternatively, a section that is to be repeated in multi-player mode can be indicated across multiple MIDI files, in respective tracks called multiplayer_markers, or can be located in the same MIDI track as other MIDI data, spread across multiple MIDI file.

In one embodiment, when there will be a transition from one part of the song to a non-adjacent part of the song, the audio track for a period of time before the origin of the transition is blended with the audio track for the same duration before the target of the transition, or the audio track for a period of time after the origin of the transition is blended with the audio track for the same duration after the target of the transition, or some combination. This is similar to how animations are blended when producing an easy difficulty. For example, one beat worth of audio before the MP_END event could be blended with one beat worth of audio before the MP_START event, then one beat worth of audio after the MP_END event could be blended with one beat worth of audio after the MP_START event. The blending is done such that at the beginning of the blend, the contribution from the audio before the MP_END event is 100%, and at the end of the blend, the contribution of the audio from after MP_START is 100%. This can be a linear crossfade, or it can use any other interpolating function, such as polynomial.

In some cases, as with animation blending, the result of audio blending is still jarring. This is often due to the discontinuity in the harmonic progression of the song when moving to a different place in the music, or presence or absence of vocal or instrument parts before or after the transition. In some embodiments, as with bridge animation segments, additional audio is recorded to produce waveform data for a bridge audio segment. The bridge audio segment is designed to make the audio transition between two non-adjacent parts of the song sound smooth. Using the example above with sections A, B, and C, if the game will repeat section B, a bridge audio segment can be provided that smoothly transitions from the last part of section B into the first part of section B.

In one embodiment, the waveform data for bridge audio segments are included in one or more additional bridge audio tracks in the multi-track audio data, and the bridge audio tracks are muted unless non-sequential looping is taking place. However, each bridge audio segment could be located in its own file referenced by the game authoring, or all bridge audio segments could be located in a single file, and the offset and duration of each segment of bridge audio in the single file would be stored as unique text events in the MIDI file.

In some embodiments, all bridge audio segments are of a fixed duration in beats, with a fixed number of beats before the transition. In these embodiments, the original song audio is played until a fixed amount of time in beats before the end of the transition. Then the original song audio track or tracks are muted, and the bridge audio segment is played until the transition point. Then the “current time” is moved to the target of the transition and the remainder of the bridge audio segment is played. At this point, the bridge audio track is muted and the original song audio track or tracks are unmuted. For example, all bridge audio segments might be three beats long, with one beat before the transition. Using the example above with sections A, B, and C, if the game will repeat section B, a 3-beat-long bridge audio segment from the end of B to the beginning of B may be provided. One beat before end of B, the original audio tracks are muted and the B-to-B bridge audio segment is played. When the end of B is reached, the current time is moved to the beginning of B, and the bridge audio segment continues playing for two more beats. After two beats, the bridge audio track is muted and the original tracks are unmuted. Beneficially, aligning the audio and changing the current time in this way allows for a single, consistent timeline for audio playback, animation, and other aspects of gameplay. Alternatively, the current time may be changed at the end of the bridge audio segment's playback, and moved directly to two beats after the beginning of B section. This example discusses bridge audio segments that are all 3 beats long, which start playing one beat before the transition, but other embodiments may have bridge audio segments that are all longer or shorter, or that all begin earlier or later with respect to the transition.

In some embodiments, the song audio and bridge audio segments may be muted and unmuted, as described. Alternatively, the song audio and bridge audio segments may be mixed, such as by lowering the normal song audio volume to 10% and playing the bridge audio segment at 90%. It is also possible to cross-fade the song audio and bridge audio segments. For example, the last beat of the B section would start with 100% of the song audio and end with 100% of the bridge audio segment, then the bridge audio segment would play at 100%, then the second beat of the B section would start with 100% of the bridge audio segment and end with 100% of the second beat of the song audio. The interpolation can be linear, but it can also use any other interpolating function, such as polynomial.

In some embodiments, as described above, the bridge audio segments can be of a fixed duration in beats or seconds. In other embodiments, each bridge audio segments can be of different durations. Beneficially, the ability to specify bridge audio segments of different durations makes it easier to provide a musically seamless transition, using more time if necessary, to achieve the proper harmonic and orchestration transitions, and less if possible, so that the playback departs as little as possible from the original music.

In one embodiment, all the waveform data for bridge audio segments is located on a single bridge audio track, bridge_audio, in the multi-track audio data file. The bridge audio waveform data for a given transition is divided into the sub-segment before the transition and the sub-segment after the transition. The sub-segment before the transition is positioned in the bridge_audio track so that it ends exactly at the transition point, corresponding to the MP_END text event in the associated MIDI file. The sub-segment after the transition is positioned in the bridge_audio track such that it begins exactly at the target of the transition, corresponding to the MP_START text event in the associated MIDI file.

In some embodiments, where the bridge audio segments are of a fixed duration, the beginning and end of the bridge audio segments is implicit in the fixed duration and the fixed amount of time before the transition, as described above.

In the preferred embodiment, the specification of the beginning and end of bridge audio segments is provided in a MIDI file, in the multiplayer_markers track, although the beginning and end of the bridge audio segments could be in their own MIDI track, or in their own MIDI file whose timeline is aligned with the audio timeline. In the multiplayer_markers track, special multiplayer text events, MP_BRIDGE_START and MP_BRIDGE_END, denote the beginning and end of a bridge audio segment. As the game is played in a multi-player mode, when an MP_BRIDGE_START text event is encountered on the timeline of multiplayer_markers, the original audio track or tracks are muted and the bridge_audio track is unmuted. As described above, attenuation of the original track or crossfading with the bridge audio track can be used instead of muting and unmuting. Playback continues until the transition point itself, which is indicated by the MP_END text event. At this point, the “current time” is set to the target of the transition, marked by the MP_START text event, and the bridge audio track continues. When the MIDI MP_BRIDGE_END event is encountered, the original audio track or tracks are unmuted, and the bridge audio track is muted. Note that when the transition is backwards in time, the MP_BRIDGE_END event occurs earlier on the timeline than the MP_BRIDGE_START event, since the current time is modified between them. Beneficially, dividing the bridge audio segments and modifying the current time at the transition point as described allows there to be a single concept of current time for the audio, animation, and gameplay. In other embodiments, the current time is modified only after the playback of the bridge audio segment is complete, and at that point it is set to the location of MP_START plus the length of the second sub-segment of the bridge audio segment. As described above, a section that is to be repeated in multi-player mode also can be indicated across multiple MIDI files, in respective tracks called multiplayer_markers, or can be located in the same MIDI track as other MIDI data, spread across multiple MIDI file.

Additional Variations

The examples given herein of a user satisfying a filter by completing a series of moves can be adapted to satisfy a “mirror mode” as well, where the user provides input that mirrors the target performance, e.g., providing input using a right hand when the target performance uses a left hand, providing right leg input when the target performance uses a left leg, and so forth.

Additionally, where a target performance skeleton is provided, it can be generated beforehand, or can be generated during execution of the game based on the motion capture data.

Any system that can detect movement can be used as long as positions of the scored joints can be determined in either two-dimensional space or three-dimensional space to create or simulate a skeleton. For two-dimensional implementations, scoring is typically adjusted to compare the projection of the target performance and the projection of the input performance onto a plane parallel to the screen. Although the system and technology has been described in terms of a camera input system like Natal, camera systems that utilizes sensors on the user's body, e.g., PLAYSTATION® Move, or systems that use sensors held in the user's hand, e.g., the NINTENDO® Wii, may also be utilized. In those implementations where only hand held sensors are utilized by the user, testing for leg input is ignored or not performed.

Although the embodiments described herein use dancing as an example, and the performance is typically accompanied by a song, the performance can also be movements that occur on a timeline with no musical accompaniment, e.g., a series of yoga poses, movements in a martial arts kata, or the like.

In some implementations, the mocap data is mapped to a skeleton similar to that used to reflect the user's input. Thus, the mocap data is used to generate an ideal skeleton that represents a performance of the dance routine in a format that is directly comparable to the skeleton representing the user's input. Then, during the game, as the user provides input, the user's skeleton is compared to the ideal skeleton, in effect normalizing the target input (the target performance) and actual inputs (the user's performance) to the same frame of reference, i.e., both performances are expressed in terms of the same skeleton-based technology.

In some embodiments, rather than matching position necessarily within a time window as described above, filter types are predefined and used to test user input. For example, proximity filters tests if a joint in a particular position, or close to a particular other joint, e.g., “are the left wrist and right wrist less than, greater than, or within a delta of a certain distance of one another. Another filter is a displacement filter which tests if a joint has moved a certain distance between times t₀ and t_(n). Another example is the angle filter, which tests if a joint is at a particular angle from the origin. One or more of these filters is then hand-inserted (or “authored”) into the timeline and bound to joints such that at a particular time, the condition is tested, e.g., “has the RIGHT WRIST moved from x₀ to x_(n) since I began tracking it?” would be a displacement filter. If the user's wrist had, the filter would be satisfied. Yet another filter is an acceleration filter which tests if a joint or bone has accelerated or decelerated between times t₀ and t_(n). An acceleration filter can also test whether the magnitude of the acceleration matches a predetermined value.

In these embodiments, multiple filters can be overlaid on the timeline, and tested, in effect, simultaneously. An overall score for the frame is determined based on contributions from all of the active filters during a given frame. The filters can output a Boolean, and the score is computed from those. Or—in some implementations—the outputs are continuous, and the aggregate score is computed from those. Similar to the system described above, contributions from each active filter can be weighted differently in their contributions to the score. For Boolean filters, successfully completing 3 out of 5 filters gives the user a score of 0.6. In some implementations, each keyframe comparison gives a percentage credit for the move as a whole being correct. The user's score may be adjusted based on the aggregate score for a keyframe. Or the aggregate score for a keyframe may be quantized into groups, each group being compared to one or more thresholds, each group associated with a score that is added to the user's score. In any of these, if the user achieves a threshold score for a move, where if the user meets or exceeds the threshold, e.g., 80%, the user is considered to have successfully performed the move.

In some embodiments, execution of game software limits the game platform 120 to a particular purpose, e.g., playing the particular game. In these scenarios, the game platform 120 combined with the software, in effect, becomes a particular machine while the software is executing. In some embodiments, though other tasks may be performed while the software is running, execution of the software still limits the game platform 120 and may negatively impact performance of the other tasks. While the game software is executing, the game platform directs output related to the execution of the game software to a display, thereby controlling the operation of the display. The game platform 120 also can receive inputs provided by one or more users, perform operations and calculations on those inputs, and direct the display to depict a representation of the inputs received and other data such as results from the operations and calculations, thereby transforming the input received from the users into a visual representation of the input and/or the visual representation of an effect caused by the user.

The above-described techniques can be implemented in digital electronic circuitry, or in computer hardware, firmware, software, or in combinations of them. The implementation can be as a computer program product, i.e., a computer program tangibly embodied in a machine-readable storage device, for execution by, or to control the operation of, data processing apparatus, e.g., a programmable processor, a computer, a game console, or multiple computers or game consoles. A computer program can be written in any form of programming language, including compiled or interpreted languages, and it can be deployed in any form, including as a stand-alone program or as a module, component, subroutine, or other unit suitable for use in a computing environment. A computer program can be deployed to be executed on one computer or game console or on multiple computers or game consoles at one site or distributed across multiple sites and interconnected by a communication network.

Method steps can be performed by one or more programmable processors executing a computer or game program to perform functions of the invention by operating on input data and generating output. Method steps can also be performed by, and apparatus can be implemented as, a game platform such as a dedicated game console, e.g., PLAYSTATION® 2, PLAYSTATION® 3, or PSP® manufactured by Sony Corporation; NINTENDO WII™, NINTENDO DS®, NINTENDO DSi™, or NINTENDO DS LITE™ manufactured by Nintendo Corp.; or XBOX® or XBOX 360® manufactured by Microsoft Corp. or special purpose logic circuitry, e.g., an FPGA (field programmable gate array) or an ASIC (application-specific integrated circuit) or other specialized circuit. Modules can refer to portions of the computer or game program and/or the processor/special circuitry that implements that functionality.

Processors suitable for the execution of a computer program include, by way of example, special purpose microprocessors, and any one or more processors of any kind of digital computer or game console. Generally, a processor receives instructions and data from a read-only memory or a random access memory or both. The essential elements of a computer or game console are a processor for executing instructions and one or more memory devices for storing instructions and data. Generally, a computer or game console also includes, or be operatively coupled to receive data from or transfer data to, or both, one or more mass storage devices for storing data, e.g., magnetic, magneto-optical disks, or optical disks. Data transmission and instructions can also occur over a communications network. Information carriers suitable for embodying computer program instructions and data include all forms of non-volatile memory, including by way of example semiconductor memory devices, e.g., EPROM, EEPROM, and flash memory devices; magnetic disks, e.g., internal hard disks or removable disks; magneto-optical disks; and CD-ROM and DVD-ROM disks. The processor and the memory can be supplemented by, or incorporated in special purpose logic circuitry.

To provide for interaction with a user, the above described techniques can be implemented on a computer or game console having a display device, e.g., a CRT (cathode ray tube) or LCD (liquid crystal display) monitor, a television, or an integrated display, e.g., the display of a PSP®, or Nintendo DS. The display can in some instances also be an input device such as a touch screen. Other typical inputs include a camera-based system as described herein, simulated instruments, microphones, or game controllers. Alternatively input can be provided by a keyboard and a pointing device, e.g., a mouse or a trackball, by which the user can provide input to the computer or game console. Other kinds of devices can be used to provide for interaction with a user as well; for example, feedback provided to the user can be any form of sensory feedback, e.g., visual feedback, or auditory feedback; and input from the user can be received in any form, including acoustic, speech, or tactile input.

The above described techniques can be implemented in a distributed computing system that includes a back-end component, e.g., as a data server, and/or a middleware component, e.g., an application server, and/or a front-end component, e.g., a client computer or game console having a graphical user interface through which a user can interact with an example implementation, or any combination of such back-end, middleware, or front-end components. The components of the system can be interconnected by any form or medium of digital data communication, e.g., a communication network. Examples of communication networks include a local area network (“LAN”) and a wide area network (“WAN”), e.g., the Internet, and include both wired and wireless networks.

The computing/gaming system can include clients and servers or hosts. A client and server (or host) are generally remote from each other and typically interact through a communication network. The relationship of client and server arises by virtue of computer programs running on the respective computers and having a client-server relationship to each other.

The invention has been described in terms of particular embodiments. The alternatives described herein are examples for illustration only and not to limit the alternatives in any way. The steps of the invention can be performed in a different order and still achieve desirable results. 

1. A method of prompting a player to perform a series of dance moves, the method executed on a game platform in signal communication with a display, the method comprising: providing a timeline comprising at least a first time interval associated with a first dance move, and a second time interval associated with a second dance move; displaying an icon representing the first dance move at a first location on the display for the duration of the first time interval; and displaying an icon representing the second dance move at the first location on the display for the duration of the second time interval; wherein the icon representing the first dance move comprises one or more representations of a body and indicates on the one or more representations of the body at least one body part whose position is important during the performance of the first dance move.
 2. A method of prompting a player to perform a series of dance moves, the method executed on a game platform in signal communication with a display, the method comprising: providing a timeline comprising at least a first time interval associated with a first dance move, and a second time interval associated with a second dance move; displaying an icon representing the first dance move at a first fixed location on the display for the duration of a third time interval, the third time interval associated with the first dance move; and displaying an icon representing the second dance move at the first fixed location on the display for the duration of a fourth time interval, the fourth time interval associated with the second dance move; wherein, the icon representing the first dance move comprises one or more representations of a body and indicates on the one or more representations of the body at least one body part whose role is important during the performance of the first dance move.
 3. The method of claim 2 wherein the role of the at least one body part is at least one of: the position, the velocity, the direction of movement, or any combination of the foregoing.
 4. The method of claim 2 wherein the first time interval and the third time interval are substantially the same time interval and the second time interval and the fourth time interval are substantially the same time interval.
 5. The method of claim 2 wherein the third time interval begins slightly before the beginning of the first time interval and ends slightly before the end of the first time interval.
 6. The method of claim 2 further comprising: performing a table lookup using the first dance move before the third time interval to determine the icon representing the first dance move; and retrieving the icon representing the first dance move from a memory.
 7. A method of providing dance instructions executed on a game platform in signal communication with a display, the method comprising: displaying, on the display, a game play screen comprising a first region and a second region; displaying in the first region a first icon representing a first dance move for the player to perform for a first time period associated with the first dance move; and translating into the first region from the second region, at the end of the first time period, a second icon depicting a second dance move for the player to perform; wherein, the first icon representing the first dance move comprises one or more representations of a body and indicates on the one or more representations of the body at least one body part whose role is important during the performance of the first dance move.
 8. The method of claim 7, further comprising before the translating step, displaying, in the second region, the second icon for the first time period associated with the first dance move.
 9. The method of claim 7, wherein each representation of the one or more representations depicts a pose associated with the first dance move.
 10. The method of claim 9, wherein each of the one or more representations of a body is an outline of a body.
 11. The method of claim 7, further comprising displaying at a third location on the display, at a time associated with the second time interval, the icon representing the first dance move.
 12. The method of claim 11, further comprising: determining a score for the player's performance of the first dance move; and changing an attribute of the icon representing the first dance move based on the score.
 13. The method of claim 12, wherein the attribute is one of a color, a brightness, a background, or a size.
 14. The method of claim 11, further comprising animating a transition of the icon representing the first dance move to the third location.
 15. The method of claim 7, further comprising animating a transition of the icon representing the second dance move to the first location.
 16. The method of claim 7, wherein indicating at least one body part whose position is important during the performance of the first dance move comprises highlighting the at least one body part on the icon representing the first dance move.
 17. The method of claim 7, wherein the icon representing the first dance move comprises an indicia of motion for the at least one body part whose position is important during the performance of the first dance move.
 18. The method of claim 7, wherein the icon representing the first dance move comprises an indicia of motion for the player's body.
 19. The method of claim 7, wherein the icon representing the first dance move comprises an indicia of repetition of motion.
 20. The method of claim 7, wherein the icon representing the first dance move is animated. 